]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
perf-tool: Expose --x11 option
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 4 Aug 2020 18:41:31 +0000 (20:41 +0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 12 Aug 2020 15:43:38 +0000 (15:43 +0000)
Running with the X11 backend is no longer as easy as not specifying
wayland, so expose mutter's --x11 option to allow enforcing the X11
backend for testing.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1396

src/gnome-shell-perf-tool.in

index 04072c4cdf225b302fdcc9e03220685f95bede3d..658cafc1d71ce50b5739be0863c60b6354a59700 100755 (executable)
@@ -51,6 +51,8 @@ def start_shell(perf_output=None):
             args.append('--nested')
         else:
             args.append('--display-server')
+    elif options.x11:
+        args.append('--x11')
 
     return subprocess.Popen(args, env=env)
 
@@ -295,6 +297,8 @@ parser.add_option("-w", "--wayland", action="store_true",
                   help="Run as a Wayland compositor")
 parser.add_option("-n", "--nested", action="store_true",
                   help="Run as a Wayland nested compositor")
+parser.add_option("-x", "--x11", action="store_true",
+                  help="Run as an X11 compositor")
 
 options, args = parser.parse_args()